package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {


    @Select("select * from user where id=#{userId};")
    User getById(Long userId);

    @Select("select * from sky_take_out.user where openid=#{openid}")
    public User select(String openid);
    void insert(User user);

    Integer getUserAtatistics(Map map);
}
